package cn.ickck.law_paper_final.utils;

/**
 * @Author: ck
 * @Description:
 * @Date: Create in 14:30 2020/12/14
 */
public class PageHelperUtils {
    //每页容量
    public static final int page_count = 20;
    public static int getStart(int count,int page)
    {
      return   count - page *page_count > 0 ? count - page * page_count: 0;

    }

    public static  int getEnd(int count,int page)
    {
        return count - (page - 1) * page_count > 0 ? count - (page - 1) * page_count : count;
    }
}
